// homeMusic页面发送网络请求
import {myRequest} from "./request"

// 获取轮播图片信息
export const reqgetBannersList = (type = 0) => {
  return myRequest.get({
    url: "/banner",
    data:{
      type
    }
  })
}

// 获取推荐歌曲
export const reqgetRecommendList = (id = 3778678) => {
  return myRequest.get({
    url: "/playlist/detail",
    data: {
      id
    }
  })
}

// 获取热门歌单
export const reqgetHotSongsList = (cat = "全部", limit=6, offset=0) => {
  return myRequest.get({
    url: "/top/playlist",
    data: {
      cat,
      limit,
      offset
    }
  })
}

// 热门歌单分类
export const reqgetPlaylistHot = () => {
  return myRequest.get({
    url: "/playlist/hot"
  })
}